package com.reading.common.persistence.view;

import com.reading.common.entity.view.BookChapter;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;

@Resource
public interface BookChapterMapper {
    Integer deleteByPrimaryKey(Integer id);

    Integer insert(BookChapter record);

    Integer insertList(List<BookChapter> records);

    BookChapter selectByPrimaryKey(@Param("bookId") Integer bookId, @Param("chapterNumber") Integer chapterNumber);

    List<BookChapter> selectAllChapterByBookId(Integer bookId);

    Integer updateByPrimaryKeySelective(BookChapter record);
}